﻿using System.Web;
using System.Web.Optimization;

namespace BlankMvc {
	public class BundleConfig {
		// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
		public static void RegisterBundles(BundleCollection bundles) {
			bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
						"~/Scripts/jquery-{version}.js",
						"~/Scripts/jqueryPlugins/jquery.validate.*",
						"~/Scripts/jqueryPlugins/jquery.form.min.js",
						"~/Scripts/client/ajaxnavigation.js"));

			bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
						"~/Scripts/modernizr-*"));
			
			bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
					  "~/Scripts/bootstrap/bootstrap.min.js",
					  "~/Scripts/bootstrap/bootstrap-datetimepicker.min.js",
					  "~/Scripts/bootstrap/bootstrap-select.min.js",
					  "~/Scripts/bootstrap/respond.js"));

			bundles.Add(new ScriptBundle("~/bundles/jcrop").Include(
					  "~/Scripts/jqueryPlugins/jquery.Jcrop.min.js",
					  "~/Scripts/jqueryPlugins/jquery.color.js"));

			bundles.Add(new StyleBundle("~/Content/jcrop").Include(
					  "~/Content/jquery.Jcrop.min.css"));

			bundles.Add(new StyleBundle("~/Content/css").Include(
					  "~/Content/bootstrap.css",
					  "~/Content/site.css",
					  "~/Content/bootstrap-datetimepicker.min.css"));

#if !DEBUG
			BundleTable.EnableOptimizations = true;
#endif
		}
	}
}
